package com.zhwmall.common.config;


import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author:yanjizhw@163.com
 * @date:2020/8/24 9:03
 * 描述:
 * @since:1.0.0
 */
@Configuration
@ConditionalOnClass(value = {PaginationInterceptor.class})
public class PaginationConfig {
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        PaginationInterceptor paginationInterceptor = new PaginationInterceptor();
        return paginationInterceptor;
    }
}
